<?php
class Comment extends Vnf_Db_Table {
    protected $_name;
    protected $_primary = 'comment_id';

    function __construct() {
        $this->_name = DB_PREFIX . "comment";
        parent::__construct();
    }
	
    public function getByKH($idKH){
    	$select = Zend_Db_Table_Abstract::select();
        $select->setIntegrityCheck(false);
        $select->from(array('a' => $this->_name));
        $select->where('comment_khoahoc_id = ?', $idKH);
        $data = $this->fetchAll($select);
        if ($data) {
            return $data->toArray();
        }
        return $data;
    }
}
?>
